﻿package mortal.game.view.guildNew.WareHourse
{
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class GuildNewWareHAppNum extends GSprite
    {
        protected var _bg:GBitmap;
        protected var _num:GTextFiled;

        public function GuildNewWareHAppNum()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gBitmap(ImagesConst.NumberBg, 0, 0, this);
            this._num = UIFactory.gTextField("2", -1, 1, 26, 20, this, GlobalStyle.textFormatPutong.setColor(16777215).center());
            var _loc_1:Boolean = false;
            this._num.selectable = false;
            this._num.mouseEnabled = _loc_1;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._bg = null;
            this._num = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function updateNum(param1:int) : void
        {
            this._num.text = "" + param1;
            if (param1 == 0)
            {
                this.visible = false;
            }
            else
            {
                this.visible = true;
            }
            return;
        }// end function

    }
}
